<style>
	table{table-layout:fixed;}

	tbody.collapse-content{
		max-height:350px;
		overflow: scroll;
	}
	.collapse-head{
		
	}
</style>
<div class="panel panel-default panel-intro">
	<div class="panel-heading">
        {:build_heading(null,FALSE)}
		<p> 
			1、选择完成后，点击下方“选择完成”按钮。<br>
			2、手动输入了分数和排序，需选中，然后保存<br>
			3、分数为必填项。
		</p>
    </div>
	<div class="panel-body">
		<div id="toolbar" class="toolbar">
			  <a class="btn btn-info btn-selected" href="javascript:;"><i class="fa fa-save"></i> 选择完成</a>
		</div>
		<form id="chooseitem-form" action="" method="post">
			<table class="table table-striped table-bordered table-hover table-nowrap" width="100%">
				<thead>
					<tr>
						<th class="bs-checkbox" style="text-align: center; vertical-align: middle; width: 36px;">选择</th>
						<th style="text-align: center; vertical-align: middle; width: 36px;"><div class="th-inner ">Id</div></th>
						<th style="text-align: center; vertical-align: middle; width: 80%; "><div class="th-inner ">题目</div></th>
						<th style="text-align: center; vertical-align: middle; width: 20%;"><div class="th-inner ">类型</div></th>
						<th style="text-align: center; vertical-align: middle; width: 72px;"><div class="th-inner ">分数</div></th>
						<th style="text-align: center; vertical-align: middle; width: 72px;"><div class="th-inner ">排序</div></th>
					</tr>
				</thead>
					<!-- <tbody class="collapse__hd">
						<tr class="warning">
							<td colspan="6">判断题 <i class="fa fa-angle-down"></i></td>
						</tr>
					</tbody>
					<tbody class="collapse__bd">
						{foreach $list_judge as $key=>$val} 
						<tr>
							<td class="bs-checkbox"><input name="row[{$val.id}][select]" type="checkbox" value="checked" {notempty  name="val.checked"}checked{/notempty}></td> 
							<td style="text-align: center; vertical-align: middle; ">{$val.id}<input type="hidden" name="row[{$val.id}][id]" value="{$val.id}" /></td> 
							<td style="text-align: left; vertical-align: middle; ">{$val.title}</td> 
							<td style="text-align: center; vertical-align: middle; ">{$val.type_text}</td>
							<td style="text-align: center; vertical-align: middle; "><input type="number" class="form-control input-sm" value="{$val.score}" name="row[{$val.id}][score]" /></td> 
							<td style="text-align: center; vertical-align: middle; "><input type="number" class="form-control input-sm" value="{$val.weigh}" name="row[{$val.id}][weigh]" /></td> 
						</tr>
						{/foreach}
					</tbody> -->
					<tbody class="collapse__hd">
						<tr class="warning">
							<td colspan="6">单选题 <i class="fa fa-angle-down"></i></td>
						</tr>
					</tbody>
					<tbody class="collapse__bd">
						{foreach $list_onechoice as $key=>$val} 
						<tr>
							<td class="bs-checkbox"><input name="row[{$val.id}][select]" type="checkbox" value="checked" {notempty  name="val.checked"}checked{/notempty}></td> 
							<td style="text-align: center; vertical-align: middle; ">{$val.id}<input type="hidden" name="row[{$val.id}][id]" value="{$val.id}" /></td> 
							<td style="text-align: left; vertical-align: middle; overflow: hidden;">{$val.title}</td> 
							<td style="text-align: center; vertical-align: middle; ">{$val.type_text}</td>
							<td style="text-align: center; vertical-align: middle; "><input type="number" class="form-control input-sm" value="{$val.score}" name="row[{$val.id}][score]" /></td> 
							<td style="text-align: center; vertical-align: middle; "><input type="number" class="form-control input-sm" value="{$val.weigh}" name="row[{$val.id}][weigh]" /></td> 
						</tr>
						{/foreach}
					</tbody>
					<tbody class="collapse__hd">
						<tr class="warning">
							<td colspan="6">多选题 <i class="fa fa-angle-down"></i></td>
						</tr>
					</tbody>
					<tbody class="collapse__bd">
						{foreach $list_manychoice as $key=>$val} 
						<tr>
							<td class="bs-checkbox"><input name="row[{$val.id}][select]" type="checkbox" value="checked" {notempty  name="val.checked"}checked{/notempty}></td> 
							<td style="text-align: center; vertical-align: middle; ">{$val.id}<input type="hidden" name="row[{$val.id}][id]" value="{$val.id}" /></td> 
							<td style="text-align: left; vertical-align: middle; overflow: hidden;">{$val.title}</td> 
							<td style="text-align: center; vertical-align: middle; ">{$val.type_text}</td>
							<td style="text-align: center; vertical-align: middle; "><input type="number" class="form-control input-sm" value="{$val.score}" name="row[{$val.id}][score]" /></td> 
							<td style="text-align: center; vertical-align: middle; "><input type="number" class="form-control input-sm" value="{$val.weigh}" name="row[{$val.id}][weigh]" /></td> 
						</tr>
						{/foreach}
					</tbody>
			</table>

		</form>
	</div>		

</div>
